var utils =require("utils");
var casper = require("casper").create();
utils.dump({plop:42,data:22,test:33});
var type = utils.betterTypeOf([1,2,3]);
casper.echo(type);
var inst = utils.betterInstanceOf([1,22,44,333], Array);
casper.echo(inst);
var ext = utils.fileExt("d:/log.txt");
casper.echo(ext);
var pad = utils.fillBlanks("see", "4");
casper.echo(pad);
var format = utils.format("weee %d",43);
casper.echo(format);  
var account = {
    username: 'chuck',
    skills: {
        kick: {
            roundhouse: true
        }
    }
}
var kick = utils.getPropertyPath(account, 'skills.kick.roundhouse'); // true
casper.echo(kick);
function Cow() {
    this.moo = function moo() {
        return 'moo!';
    };
}

function Cat() {
    this.moo = function moo() {
        return 'cat!';
    };
}
function test(pa) {
	return pa;
}
var cat = new Cat();
var ca = utils.inherits(cat, Cow);
casper.echo(ca);
casper.echo(utils.isArray([1,2,3,4]));
casper.echo(utils.isCasperObject(casper));
casper.echo(utils.isClipRect(cat));
casper.echo(utils.isFalsy(ca));
casper.echo(utils.isFunction(test));
casper.echo(utils.isJsFile("css3-selector.js"));
var b = null; 
casper.echo(utils.isNull(b));
casper.echo(utils.isNumber(33));
casper.echo(utils.isObject(cat));
casper.echo(utils.isString("value"));
casper.echo(utils.isTruthy("subject"));
casper.echo(utils.isType(11, "number"));
var c;
casper.echo(utils.isUndefined(c));
casper.echo(utils.isWebPage(require('webpage').create()));
casper.echo(utils.mergeObjects(cat, cat));
var d = utils.node("Name");
casper.echo(d);
casper.echo(utils.serialize([1,23,3,3,4]));
casper.echo(utils.unique([1,2,2,3]));
casper.exit();
